﻿using Arim.S4.Api;
using Arim.S4.Client.Base.Dto;

namespace Arim.S4.Client.Service
{
    public class MachineAppService : BaseAppService<MachineDto, MachineQueryDto>
    {
        public MachineAppService() : base(Urls.MACHINES.BASE) { }

        public PagedList<MachineHistoryDto> GetHistories(PageDto pager, MachineHistoryQueryDto query)
        {
            return this.BuildRestApi<MachineHistoryDto>().GetPagedList(Urls.MACHINES.HISTORY, pager, query);
        }
    }
}
